package com.jeesite.modules.goods.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;


@Table(name="zt_specifications", alias="a", columns={
		@Column(name="id", attrName="id", label="编号", isPK=true),
		@Column(name="stock", attrName="stock", label="排序号"),
		@Column(name="pname", attrName="pname", label="排序号"),
		@Column(name="sku", attrName="sku", label="排序号"),
		@Column(name="erpid", attrName="erpid", label="排序号"),
		@Column(name = "orig_price", attrName = "origPrice", label = "颜色规格"),
		@Column(name="colorid", attrName="ztColor.id", label="父表主键"),
		@Column(name="soldnum", attrName="soldnum", label="排序号"),
		@Column(name="status", attrName="status", label="排序号"),
		@Column(name="xgnum", attrName="xgnum", label="限购数量"),
		@Column(name = "quence", attrName = "quence", label = "顺序"),
		@Column(name="create_date", attrName="createDate", label="排序号"),
		@Column(name="update_date", attrName="updateDate", label="排序号"),
		
		@Column(name="name", attrName="name", label="规格名", queryType=QueryType.LIKE),

	}, orderBy="a.id ASC"
)
public class ZtSpecifications extends DataEntity<ZtSpecifications> {
	
	private static final long serialVersionUID = 1L;
	private String name;//规格名
	private Integer stock;//库存数量
	private ZtColor ztColor;
	
	private Integer soldnum;//已售数量
	private Integer quence;
	private Integer xgnum;//限购数量
	private String erpid;
	private Double origPrice;
	private String pname;
	private String sku;
	
	
	
	public Integer getQuence() {
		return quence;
	}
	public void setQuence(Integer quence) {
		this.quence = quence;
	}
	public Double getOrigPrice() {
		return origPrice;
	}
	public void setOrigPrice(Double origPrice) {
		this.origPrice = origPrice;
	}
	public String getErpid() {
		return erpid;
	}
	public void setErpid(String erpid) {
		this.erpid = erpid;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public String getSku() {
		return sku;
	}
	public void setSku(String sku) {
		this.sku = sku;
	}
	public Integer getXgnum() {
		return xgnum;
	}
	public void setXgnum(Integer xgnum) {
		this.xgnum = xgnum;
	}
	public Integer getSoldnum() {
		return soldnum;
	}
	public void setSoldnum(Integer soldnum) {
		this.soldnum = soldnum;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getStock() {
		return stock;
	}
	public void setStock(Integer stock) {
		this.stock = stock;
	}
	public ZtColor getZtColor() {
		return ztColor;
	}
	public void setZtColor(ZtColor ztColor) {
		this.ztColor = ztColor;
	}
	


}
